package com.summer.order.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name = "user_day_food")
public class UserDayFood implements java.io.Serializable{
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4642089197987884819L;

	private String id;
	
	private Date date;

	private String weekday;
	
	private String breakfast;
	private String lunch;
	
	private Cookbook cookbook;
	
	private UserOrder userOrder;
	
	
	public UserDayFood(){}
	
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return id;
	}
	@Column(name="weekday")
	public String getWeekday() {
		return weekday;
	}
	
	@Column(name = "d_date")
	public Date getDate() {
		return date;
	}
	
	@Column(name = "breakfast")
	public String getBreakfast() {
		return breakfast;
	}
	@Column(name = "lunch")
	public String getLunch() {
		return lunch;
	}
	
	
	@ManyToOne
	@JoinColumn(name = "userorder_id")
	public UserOrder getUserOrder() {
		return userOrder;
	}
	
	@ManyToOne
	@JoinColumn
	public Cookbook getCookbook() {
		return cookbook;
	}

	public void setBreakfast(String breakfast) {
		this.breakfast = breakfast;
	}
	
	public void setLunch(String lunch) {
		this.lunch = lunch;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public void setDate(Date date) {
		this.date = date;
	}


	public void setWeekday(String weekday) {
		this.weekday = weekday;
	}

	public void setUserOrder(UserOrder userOrder) {
		this.userOrder = userOrder;
	}
	
	public void setCookbook(Cookbook cookbook) {
		this.cookbook = cookbook;
	}
	
}
